//
//  MSCommentViewController.m
//  MSJD
//
//  Created by xiangbo on 2018/12/10.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import "MSCommentViewController.h"

@interface MSCommentViewController ()

@end

@implementation MSCommentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"全部点评";
    
    self.view.backgroundColor = UIColorHex(0xF2F2F2);
    
//    [self.view addSubview:self.dataSource.tagsView];
    [self.view addSubview:self.dataSource.pageView];
    
//    [self.dataSource.tagsView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.left.right.equalTo(self.view);
//        make.height.mas_equalTo(58);
//    }];
    [self.dataSource.pageView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.equalTo(self.dataSource.tagsView.mas_bottom).offset(10);
//        make.left.bottom.right.equalTo(self.view);
        make.edges.equalTo(self.view);
    }];
    
    [self.dataSource loadpageData:^(BOOL completion) {
        
    }];
    // Do any additional setup after loading the view.
}

- (MSCommentViewSource *)dataSource{
    if (!_dataSource) {
        _dataSource = [MSCommentViewSource new];
    }
    return _dataSource;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
